A complex-compound sentence or compound-complex sentence is a sentence with at least two independent clauses and one or more dependent clauses (also known as subordinate clauses).
The dog lived in the backyard, but the cat, who knew he was superior, lived inside the house.